package pe.gob.onpe.facade.remote;

import java.util.List;
import javax.ejb.Remote;

import pe.gob.onpe.ejb.ConstanciaVotacion;


/**
 * Remote interface for ConstanciaVotacionFacade.
 * 
 * @author MyEclipse Persistence Tools
 */
@Remote
public interface ConstanciaVotacionFacadeRemote {
	/**
	 * Perform an initial save of a previously unsaved ConstanciaVotacion
	 * entity. All subsequent persist actions of this entity should use the
	 * #update() method.
	 * 
	 * @param entity
	 *            ConstanciaVotacion entity to persist
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void save(ConstanciaVotacion entity);

	/**
	 * Delete a persistent ConstanciaVotacion entity.
	 * 
	 * @param entity
	 *            ConstanciaVotacion entity to delete
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void delete(ConstanciaVotacion entity);

	/**
	 * Persist a previously saved ConstanciaVotacion entity and return it or a
	 * copy of it to the sender. A copy of the ConstanciaVotacion entity
	 * parameter is returned when the JPA persistence mechanism has not
	 * previously been tracking the updated entity.
	 * 
	 * @param entity
	 *            ConstanciaVotacion entity to update
	 * @returns ConstanciaVotacion the persisted ConstanciaVotacion entity
	 *          instance, may not be the same
	 * @throws RuntimeException
	 *             if the operation fails
	 */
	public ConstanciaVotacion update(ConstanciaVotacion entity);

	public ConstanciaVotacion findById(String id);

	/**
	 * Find all ConstanciaVotacion entities with a specific property value.
	 * 
	 * @param propertyName
	 *            the name of the ConstanciaVotacion property to query
	 * @param value
	 *            the property value to match
	 * @param rowStartIdxAndCount
	 *            Optional int varargs. rowStartIdxAndCount[0] specifies the the
	 *            row index in the query result-set to begin collecting the
	 *            results. rowStartIdxAndCount[1] specifies the the maximum
	 *            count of results to return.
	 * @return List<ConstanciaVotacion> found by query
	 */
	public List<ConstanciaVotacion> findByProperty(String propertyName,
			Object value, int... rowStartIdxAndCount);

	public List<ConstanciaVotacion> findByDigitochequeo(Object digitochequeo,
			int... rowStartIdxAndCount);

	/**
	 * Find all ConstanciaVotacion entities.
	 * 
	 * @param rowStartIdxAndCount
	 *            Optional int varargs. rowStartIdxAndCount[0] specifies the the
	 *            row index in the query result-set to begin collecting the
	 *            results. rowStartIdxAndCount[1] specifies the the maximum
	 *            count of results to return.
	 * @return List<ConstanciaVotacion> all ConstanciaVotacion entities
	 */
	public List<ConstanciaVotacion> findAll(int... rowStartIdxAndCount);
}